﻿
namespace SPL.Windows.Forms
{
	/// <summary>
	/// abstract Tvt typed datagridview
	/// </summary>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class TvtDataGridViewBase : System.Windows.Forms.UserControl
	{	
		/// <summary> 
		/// Thrown when the current Entity changed.
		/// </summary>
		public event System.EventHandler<TvtDataGridViewEventArgs> CurrentEntityChanged;
		
		#region Fields
				
		/// <summary> 
		/// the current entity.
		/// </summary>
		private Entities.Tvt _currentTvt = null;
		//private Dictionary<string, string> _columnsHeaders = new Dictionary<string, string>();
		
		/// <summary> 
		/// the datagridview instance
		/// </summary>
		protected System.Windows.Forms.DataGridView uxTvtDataGridView;
		
		/// <summary> 
		/// the errorprovider
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxTvtErrorProvider;
		
		/// <summary> 
		/// the bindingsource
		/// </summary>
		protected System.Windows.Forms.BindingSource uxTvtBindingSource;
		
		
		/// <summary> 
		/// the DGV column associated with the Id property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxIdDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I1InputDate property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI1InputDateDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I7CondBhLuongNhap property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI7CondBhLuongNhapDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I8CondBhTenMeNhap property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI8CondBhTenMeNhapDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I9CondBhKhac property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI9CondBhKhacDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I10CondBhd1013 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI10CondBhd1013DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I11BuproFt1011Nhap property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI11BuproFt1011NhapDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I12BuproFt1012Nhap property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI12BuproFt1012NhapDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I13BuproXeBonNhap property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI13BuproXeBonNhapDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I14BuproKhac property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI14BuproKhacDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I15Dlpg property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI15DlpgDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I16CondNcsz7900 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI16CondNcsz7900DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I17CondNcsKhac property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI17CondNcsKhacDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I18CondNcsBatchNo property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI18CondNcsBatchNoDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I19d7900 property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI19d7900DataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I20CondBhXuatTheoMeter property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI20CondBhXuatTheoMeterDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I21CondBhXuatTheoTank property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI21CondBhXuatTheoTankDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I22CondBhXuatTheoGiamDinh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI22CondBhXuatTheoGiamDinhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I23CondBhXuatKhac property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI23CondBhXuatKhacDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I24BuproTheoMeter property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI24BuproTheoMeterDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I25BuproTheoTank property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI25BuproTheoTankDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I27BuproXuatTheoGiamDinhTamTinh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I28BuproXuatKhac property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI28BuproXuatKhacDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I29CondNcsXuatTheoMeter property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI29CondNcsXuatTheoMeterDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I30CondNcsXuatTheoTank property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI30CondNcsXuatTheoTankDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I31CondNcsXuatTheoGiamDinh property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I32CondNcsXuatKhac property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI32CondNcsXuatKhacDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I33CondNcsLiftNo property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI33CondNcsLiftNoDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I34LpgXaDot property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI34LpgXaDotDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I35CondXaDot property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI35CondXaDotDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I36CondBhKhoiLuongTon property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI36CondBhKhoiLuongTonDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I37CondBhTonMuca property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI37CondBhTonMucaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I38CondBhTonMucb property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI38CondBhTonMucbDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I39BuproTon property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI39BuproTonDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I40CondNcsKhoiLuongTon property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI40CondNcsKhoiLuongTonDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I41CondNcsTonMuca property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI41CondNcsTonMucaDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I42CondNcsTonMucb property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI42CondNcsTonMucbDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I65GhiChuNcs property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI65GhiChuNcsDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I66GhiChuNhap property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI66GhiChuNhapDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I67GhiChuXuat property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI67GhiChuXuatDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I68GhiChuTon property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI68GhiChuTonDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the I69GhiChuKhac property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxI69GhiChuKhacDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the Status property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxStatusDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the CreatedUser property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxCreatedUserDataGridViewColumn;
		/// <summary> 
		/// the DGV column associated with the Hid property
		/// </summary>
		protected System.Windows.Forms.DataGridViewComboBoxColumn uxHidDataGridViewColumn;
		
		/// <summary> 
		/// the DGV column associated with the CreatedDate property
		/// </summary>
		protected System.Windows.Forms.DataGridViewTextBoxColumn uxCreatedDateDataGridViewColumn;
		
		#endregion
					
		#region Combo list
		
				
		private Entities.TList<Entities.Status> _StatusList;
		
		/// <summary> 
		/// The list of selectable Status
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Status> StatusList
		{
			get {return this._StatusList;}
			set 
			{
				this._StatusList = value;
				this.uxStatusDataGridViewColumn.DataSource = null;
				this.uxStatusDataGridViewColumn.DataSource = this._StatusList;
			}
		}
		
		private bool _allowNewItemInStatusList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Status
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInStatusList
		{
			get { return _allowNewItemInStatusList;}
			set
			{
				this._allowNewItemInStatusList = value;
				this.uxStatusDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.User> _CreatedUserList;
		
		/// <summary> 
		/// The list of selectable User
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.User> CreatedUserList
		{
			get {return this._CreatedUserList;}
			set 
			{
				this._CreatedUserList = value;
				this.uxCreatedUserDataGridViewColumn.DataSource = null;
				this.uxCreatedUserDataGridViewColumn.DataSource = this._CreatedUserList;
			}
		}
		
		private bool _allowNewItemInCreatedUserList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of User
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInCreatedUserList
		{
			get { return _allowNewItemInCreatedUserList;}
			set
			{
				this._allowNewItemInCreatedUserList = value;
				this.uxCreatedUserDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
				
		private Entities.TList<Entities.Tvt> _HidList;
		
		/// <summary> 
		/// The list of selectable Tvt
		/// </summary>
		[System.ComponentModel.Category("DropDownList BindingSources")]
		public Entities.TList<Entities.Tvt> HidList
		{
			get {return this._HidList;}
			set 
			{
				this._HidList = value;
				this.uxHidDataGridViewColumn.DataSource = null;
				this.uxHidDataGridViewColumn.DataSource = this._HidList;
			}
		}
		
		private bool _allowNewItemInHidList;
		
		/// <summary> 
		/// Indicates if user can add an item in the list of Tvt
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInHidList
		{
			get { return _allowNewItemInHidList;}
			set
			{
				this._allowNewItemInHidList = value;
				this.uxHidDataGridViewColumn.DisplayStyle = value ? System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox : System.Windows.Forms.DataGridViewComboBoxDisplayStyle.DropDownButton;
			}
		}
		
		#endregion
		
		#region Main Datasource
		
		private Entities.TList<Entities.Tvt> _TvtList;
				
		/// <summary> 
		/// The list of Tvt to be displayed in the DGV.
		/// </summary>
		[System.ComponentModel.Category("Data")]
		public Entities.TList<Entities.Tvt> TvtList
		{
			get {return this._TvtList;}
			set
			{
				this._TvtList = value;
				this.uxTvtBindingSource.DataSource = null;
				this.uxTvtBindingSource.DataSource = value;
				this.uxTvtDataGridView.DataSource = null;
				this.uxTvtDataGridView.DataSource = this.uxTvtBindingSource;				
				//this.uxTvtBindingSource.ListChanged += new System.ComponentModel.ListChangedEventHandler(uxTvtBindingSource_ListChanged);
				this.uxTvtBindingSource.CurrentItemChanged += new System.EventHandler(OnTvtBindingSourceCurrentItemChanged);
			}
		}
		
		private void OnTvtBindingSourceCurrentItemChanged(object sender, System.EventArgs e)
		{
			_currentTvt = uxTvtBindingSource.Current as Entities.Tvt;
			
			if (_currentTvt != null)
			{
				_currentTvt.Validate();
			}
			//_Tvt.Validate();
			OnCurrentEntityChanged();
		}

		//void uxTvtBindingSource_ListChanged(object sender, System.ComponentModel.ListChangedEventArgs e)
		//{
			//throw new Exception("The method or operation is not implemented.");
		//}		
		
		#endregion
		
		/// <summary>
		/// Gets the currently selected <c cref="Entities.Tvt"/> instance.
		/// </summary>
		public Entities.Tvt SelectedTvt
		{
			get {return this._currentTvt;}
		}
		
		#region other properties
		
		/// <summary>
		/// Gets or sets a value indicating whether you have provided your own data-management operations for the DataGridView control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool VirtualMode
		{
			get {return this.uxTvtDataGridView.VirtualMode;}
			set
			{
				this.uxTvtDataGridView.VirtualMode = value;
			}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the option to add rows is displayed to the user.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToAddRows
		{
			get {return this.uxTvtDataGridView.AllowUserToAddRows;}
			set {this.uxTvtDataGridView.AllowUserToAddRows = value;}
		}
		
		/// <summary>
		/// Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public bool AllowUserToDeleteRows
		{
			get {return this.uxTvtDataGridView.AllowUserToDeleteRows;}
			set {this.uxTvtDataGridView.AllowUserToDeleteRows = value;}
		}
		
		/// <summary>
		/// Gets the <c cref="DataGridView"/> instance.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]
		public System.Windows.Forms.DataGridView DataGridView
		{
			get {return this.uxTvtDataGridView;}
		}
		
		/// <summary>
		/// Gets a collection that contains all the columns in the control.
		/// </summary>
		[System.ComponentModel.Category(".netTiers")]		
		[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)]
		//[System.ComponentModel.EditorAttribute("System.Windows.Forms.Design.DataGridViewColumnCollectionEditor, System.Design", typeof(System.Drawing.Design.UITypeEditor))] 
		public System.Windows.Forms.DataGridViewColumnCollection Columns
		{
			get { return this.uxTvtDataGridView.Columns; }
		}
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;
	
		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	
		#region Constructor
	
		/// <summary>
		/// Initializes a new instance of the <see cref="TvtDataGridViewBase"/> class.
		/// </summary>
		public TvtDataGridViewBase()
		{			
			this.components = new System.ComponentModel.Container();			
			
			this.uxTvtDataGridView = new System.Windows.Forms.DataGridView();
			this.uxTvtBindingSource = new System.Windows.Forms.BindingSource(this.components);
			this.uxTvtErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxIdDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI1InputDateDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI7CondBhLuongNhapDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI8CondBhTenMeNhapDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI9CondBhKhacDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI10CondBhd1013DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI11BuproFt1011NhapDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI12BuproFt1012NhapDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI13BuproXeBonNhapDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI14BuproKhacDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI15DlpgDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI16CondNcsz7900DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI17CondNcsKhacDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI18CondNcsBatchNoDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI19d7900DataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI20CondBhXuatTheoMeterDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI21CondBhXuatTheoTankDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI22CondBhXuatTheoGiamDinhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI23CondBhXuatKhacDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI24BuproTheoMeterDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI25BuproTheoTankDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI28BuproXuatKhacDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI29CondNcsXuatTheoMeterDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI30CondNcsXuatTheoTankDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI32CondNcsXuatKhacDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI33CondNcsLiftNoDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI34LpgXaDotDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI35CondXaDotDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI36CondBhKhoiLuongTonDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI37CondBhTonMucaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI38CondBhTonMucbDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI39BuproTonDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI40CondNcsKhoiLuongTonDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI41CondNcsTonMucaDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI42CondNcsTonMucbDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI65GhiChuNcsDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI66GhiChuNhapDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI67GhiChuXuatDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI68GhiChuTonDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxI69GhiChuKhacDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			this.uxStatusDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxCreatedUserDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxHidDataGridViewColumn = new System.Windows.Forms.DataGridViewComboBoxColumn();
			this.uxCreatedDateDataGridViewColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
			//this.uxStatusBindingSource = new StatusBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxStatusBindingSource)).BeginInit();
			//this.uxCreatedUserBindingSource = new UserBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxCreatedUserBindingSource)).BeginInit();
			//this.uxHidBindingSource = new TvtBindingSource(this.components);
			//((System.ComponentModel.ISupportInitialize)(this.uxHidBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxTvtDataGridView)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxTvtBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxTvtErrorProvider)).BeginInit();
			this.SuspendLayout();
						
			// 
			// uxTvtErrorProvider
			// 
			this.uxTvtErrorProvider.ContainerControl = this;
			this.uxTvtErrorProvider.DataSource = this.uxTvtBindingSource;						
			// 
			// uxTvtDataGridView
			// 
			this.uxTvtDataGridView.AutoGenerateColumns = false;
			this.uxTvtDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.uxTvtDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
		this.uxIdDataGridViewColumn,
		this.uxI1InputDateDataGridViewColumn,
		this.uxI7CondBhLuongNhapDataGridViewColumn,
		this.uxI8CondBhTenMeNhapDataGridViewColumn,
		this.uxI9CondBhKhacDataGridViewColumn,
		this.uxI10CondBhd1013DataGridViewColumn,
		this.uxI11BuproFt1011NhapDataGridViewColumn,
		this.uxI12BuproFt1012NhapDataGridViewColumn,
		this.uxI13BuproXeBonNhapDataGridViewColumn,
		this.uxI14BuproKhacDataGridViewColumn,
		this.uxI15DlpgDataGridViewColumn,
		this.uxI16CondNcsz7900DataGridViewColumn,
		this.uxI17CondNcsKhacDataGridViewColumn,
		this.uxI18CondNcsBatchNoDataGridViewColumn,
		this.uxI19d7900DataGridViewColumn,
		this.uxI20CondBhXuatTheoMeterDataGridViewColumn,
		this.uxI21CondBhXuatTheoTankDataGridViewColumn,
		this.uxI22CondBhXuatTheoGiamDinhDataGridViewColumn,
		this.uxI23CondBhXuatKhacDataGridViewColumn,
		this.uxI24BuproTheoMeterDataGridViewColumn,
		this.uxI25BuproTheoTankDataGridViewColumn,
		this.uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn,
		this.uxI28BuproXuatKhacDataGridViewColumn,
		this.uxI29CondNcsXuatTheoMeterDataGridViewColumn,
		this.uxI30CondNcsXuatTheoTankDataGridViewColumn,
		this.uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn,
		this.uxI32CondNcsXuatKhacDataGridViewColumn,
		this.uxI33CondNcsLiftNoDataGridViewColumn,
		this.uxI34LpgXaDotDataGridViewColumn,
		this.uxI35CondXaDotDataGridViewColumn,
		this.uxI36CondBhKhoiLuongTonDataGridViewColumn,
		this.uxI37CondBhTonMucaDataGridViewColumn,
		this.uxI38CondBhTonMucbDataGridViewColumn,
		this.uxI39BuproTonDataGridViewColumn,
		this.uxI40CondNcsKhoiLuongTonDataGridViewColumn,
		this.uxI41CondNcsTonMucaDataGridViewColumn,
		this.uxI42CondNcsTonMucbDataGridViewColumn,
		this.uxI65GhiChuNcsDataGridViewColumn,
		this.uxI66GhiChuNhapDataGridViewColumn,
		this.uxI67GhiChuXuatDataGridViewColumn,
		this.uxI68GhiChuTonDataGridViewColumn,
		this.uxI69GhiChuKhacDataGridViewColumn,
		this.uxStatusDataGridViewColumn,
		this.uxCreatedUserDataGridViewColumn,
		this.uxHidDataGridViewColumn,
		this.uxCreatedDateDataGridViewColumn			});
			this.uxTvtDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
			this.uxTvtDataGridView.Location = new System.Drawing.Point(0, 0);
			this.uxTvtDataGridView.Name = "uxTvtDataGridView";
			this.uxTvtDataGridView.Size = new System.Drawing.Size(470, 300);
			this.uxTvtDataGridView.TabIndex = 0;	
			this.uxTvtDataGridView.BackgroundColor = System.Drawing.Color.WhiteSmoke;
			this.uxTvtDataGridView.EnableHeadersVisualStyles = false;
			this.uxTvtDataGridView.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.OnTvtDataGridViewDataError);
			this.uxTvtDataGridView.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnTvtDataGridViewCellValueNeeded);
			this.uxTvtDataGridView.CellValuePushed += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.OnTvtDataGridViewCellValuePushed);
			
			//
			// uxIdDataGridViewColumn
			//
			this.uxIdDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxIdDataGridViewColumn.DataPropertyName = "Id";
			this.uxIdDataGridViewColumn.HeaderText = "Id";
			this.uxIdDataGridViewColumn.Name = "uxIdDataGridViewColumn";
			this.uxIdDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxIdDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxIdDataGridViewColumn.ReadOnly = true;		
			//
			// uxI1InputDateDataGridViewColumn
			//
			this.uxI1InputDateDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI1InputDateDataGridViewColumn.DataPropertyName = "I1InputDate";
			this.uxI1InputDateDataGridViewColumn.HeaderText = "I1InputDate";
			this.uxI1InputDateDataGridViewColumn.Name = "uxI1InputDateDataGridViewColumn";
			this.uxI1InputDateDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI1InputDateDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI1InputDateDataGridViewColumn.ReadOnly = false;		
			//
			// uxI7CondBhLuongNhapDataGridViewColumn
			//
			this.uxI7CondBhLuongNhapDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI7CondBhLuongNhapDataGridViewColumn.DataPropertyName = "I7CondBhLuongNhap";
			this.uxI7CondBhLuongNhapDataGridViewColumn.HeaderText = "I7CondBhLuongNhap";
			this.uxI7CondBhLuongNhapDataGridViewColumn.Name = "uxI7CondBhLuongNhapDataGridViewColumn";
			this.uxI7CondBhLuongNhapDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI7CondBhLuongNhapDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI7CondBhLuongNhapDataGridViewColumn.ReadOnly = false;		
			//
			// uxI8CondBhTenMeNhapDataGridViewColumn
			//
			this.uxI8CondBhTenMeNhapDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI8CondBhTenMeNhapDataGridViewColumn.DataPropertyName = "I8CondBhTenMeNhap";
			this.uxI8CondBhTenMeNhapDataGridViewColumn.HeaderText = "I8CondBhTenMeNhap";
			this.uxI8CondBhTenMeNhapDataGridViewColumn.Name = "uxI8CondBhTenMeNhapDataGridViewColumn";
			this.uxI8CondBhTenMeNhapDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI8CondBhTenMeNhapDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI8CondBhTenMeNhapDataGridViewColumn.ReadOnly = false;		
			//
			// uxI9CondBhKhacDataGridViewColumn
			//
			this.uxI9CondBhKhacDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI9CondBhKhacDataGridViewColumn.DataPropertyName = "I9CondBhKhac";
			this.uxI9CondBhKhacDataGridViewColumn.HeaderText = "I9CondBhKhac";
			this.uxI9CondBhKhacDataGridViewColumn.Name = "uxI9CondBhKhacDataGridViewColumn";
			this.uxI9CondBhKhacDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI9CondBhKhacDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI9CondBhKhacDataGridViewColumn.ReadOnly = false;		
			//
			// uxI10CondBhd1013DataGridViewColumn
			//
			this.uxI10CondBhd1013DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI10CondBhd1013DataGridViewColumn.DataPropertyName = "I10CondBhd1013";
			this.uxI10CondBhd1013DataGridViewColumn.HeaderText = "I10CondBhd1013";
			this.uxI10CondBhd1013DataGridViewColumn.Name = "uxI10CondBhd1013DataGridViewColumn";
			this.uxI10CondBhd1013DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI10CondBhd1013DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI10CondBhd1013DataGridViewColumn.ReadOnly = false;		
			//
			// uxI11BuproFt1011NhapDataGridViewColumn
			//
			this.uxI11BuproFt1011NhapDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI11BuproFt1011NhapDataGridViewColumn.DataPropertyName = "I11BuproFt1011Nhap";
			this.uxI11BuproFt1011NhapDataGridViewColumn.HeaderText = "I11BuproFt1011Nhap";
			this.uxI11BuproFt1011NhapDataGridViewColumn.Name = "uxI11BuproFt1011NhapDataGridViewColumn";
			this.uxI11BuproFt1011NhapDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI11BuproFt1011NhapDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI11BuproFt1011NhapDataGridViewColumn.ReadOnly = false;		
			//
			// uxI12BuproFt1012NhapDataGridViewColumn
			//
			this.uxI12BuproFt1012NhapDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI12BuproFt1012NhapDataGridViewColumn.DataPropertyName = "I12BuproFt1012Nhap";
			this.uxI12BuproFt1012NhapDataGridViewColumn.HeaderText = "I12BuproFt1012Nhap";
			this.uxI12BuproFt1012NhapDataGridViewColumn.Name = "uxI12BuproFt1012NhapDataGridViewColumn";
			this.uxI12BuproFt1012NhapDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI12BuproFt1012NhapDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI12BuproFt1012NhapDataGridViewColumn.ReadOnly = false;		
			//
			// uxI13BuproXeBonNhapDataGridViewColumn
			//
			this.uxI13BuproXeBonNhapDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI13BuproXeBonNhapDataGridViewColumn.DataPropertyName = "I13BuproXeBonNhap";
			this.uxI13BuproXeBonNhapDataGridViewColumn.HeaderText = "I13BuproXeBonNhap";
			this.uxI13BuproXeBonNhapDataGridViewColumn.Name = "uxI13BuproXeBonNhapDataGridViewColumn";
			this.uxI13BuproXeBonNhapDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI13BuproXeBonNhapDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI13BuproXeBonNhapDataGridViewColumn.ReadOnly = false;		
			//
			// uxI14BuproKhacDataGridViewColumn
			//
			this.uxI14BuproKhacDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI14BuproKhacDataGridViewColumn.DataPropertyName = "I14BuproKhac";
			this.uxI14BuproKhacDataGridViewColumn.HeaderText = "I14BuproKhac";
			this.uxI14BuproKhacDataGridViewColumn.Name = "uxI14BuproKhacDataGridViewColumn";
			this.uxI14BuproKhacDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI14BuproKhacDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI14BuproKhacDataGridViewColumn.ReadOnly = false;		
			//
			// uxI15DlpgDataGridViewColumn
			//
			this.uxI15DlpgDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI15DlpgDataGridViewColumn.DataPropertyName = "I15Dlpg";
			this.uxI15DlpgDataGridViewColumn.HeaderText = "I15Dlpg";
			this.uxI15DlpgDataGridViewColumn.Name = "uxI15DlpgDataGridViewColumn";
			this.uxI15DlpgDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI15DlpgDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI15DlpgDataGridViewColumn.ReadOnly = false;		
			//
			// uxI16CondNcsz7900DataGridViewColumn
			//
			this.uxI16CondNcsz7900DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI16CondNcsz7900DataGridViewColumn.DataPropertyName = "I16CondNcsz7900";
			this.uxI16CondNcsz7900DataGridViewColumn.HeaderText = "I16CondNcsz7900";
			this.uxI16CondNcsz7900DataGridViewColumn.Name = "uxI16CondNcsz7900DataGridViewColumn";
			this.uxI16CondNcsz7900DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI16CondNcsz7900DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI16CondNcsz7900DataGridViewColumn.ReadOnly = false;		
			//
			// uxI17CondNcsKhacDataGridViewColumn
			//
			this.uxI17CondNcsKhacDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI17CondNcsKhacDataGridViewColumn.DataPropertyName = "I17CondNcsKhac";
			this.uxI17CondNcsKhacDataGridViewColumn.HeaderText = "I17CondNcsKhac";
			this.uxI17CondNcsKhacDataGridViewColumn.Name = "uxI17CondNcsKhacDataGridViewColumn";
			this.uxI17CondNcsKhacDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI17CondNcsKhacDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI17CondNcsKhacDataGridViewColumn.ReadOnly = false;		
			//
			// uxI18CondNcsBatchNoDataGridViewColumn
			//
			this.uxI18CondNcsBatchNoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI18CondNcsBatchNoDataGridViewColumn.DataPropertyName = "I18CondNcsBatchNo";
			this.uxI18CondNcsBatchNoDataGridViewColumn.HeaderText = "I18CondNcsBatchNo";
			this.uxI18CondNcsBatchNoDataGridViewColumn.Name = "uxI18CondNcsBatchNoDataGridViewColumn";
			this.uxI18CondNcsBatchNoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI18CondNcsBatchNoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI18CondNcsBatchNoDataGridViewColumn.ReadOnly = false;		
			//
			// uxI19d7900DataGridViewColumn
			//
			this.uxI19d7900DataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI19d7900DataGridViewColumn.DataPropertyName = "I19d7900";
			this.uxI19d7900DataGridViewColumn.HeaderText = "I19d7900";
			this.uxI19d7900DataGridViewColumn.Name = "uxI19d7900DataGridViewColumn";
			this.uxI19d7900DataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI19d7900DataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI19d7900DataGridViewColumn.ReadOnly = false;		
			//
			// uxI20CondBhXuatTheoMeterDataGridViewColumn
			//
			this.uxI20CondBhXuatTheoMeterDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI20CondBhXuatTheoMeterDataGridViewColumn.DataPropertyName = "I20CondBhXuatTheoMeter";
			this.uxI20CondBhXuatTheoMeterDataGridViewColumn.HeaderText = "I20CondBhXuatTheoMeter";
			this.uxI20CondBhXuatTheoMeterDataGridViewColumn.Name = "uxI20CondBhXuatTheoMeterDataGridViewColumn";
			this.uxI20CondBhXuatTheoMeterDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI20CondBhXuatTheoMeterDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI20CondBhXuatTheoMeterDataGridViewColumn.ReadOnly = false;		
			//
			// uxI21CondBhXuatTheoTankDataGridViewColumn
			//
			this.uxI21CondBhXuatTheoTankDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI21CondBhXuatTheoTankDataGridViewColumn.DataPropertyName = "I21CondBhXuatTheoTank";
			this.uxI21CondBhXuatTheoTankDataGridViewColumn.HeaderText = "I21CondBhXuatTheoTank";
			this.uxI21CondBhXuatTheoTankDataGridViewColumn.Name = "uxI21CondBhXuatTheoTankDataGridViewColumn";
			this.uxI21CondBhXuatTheoTankDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI21CondBhXuatTheoTankDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI21CondBhXuatTheoTankDataGridViewColumn.ReadOnly = false;		
			//
			// uxI22CondBhXuatTheoGiamDinhDataGridViewColumn
			//
			this.uxI22CondBhXuatTheoGiamDinhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI22CondBhXuatTheoGiamDinhDataGridViewColumn.DataPropertyName = "I22CondBhXuatTheoGiamDinh";
			this.uxI22CondBhXuatTheoGiamDinhDataGridViewColumn.HeaderText = "I22CondBhXuatTheoGiamDinh";
			this.uxI22CondBhXuatTheoGiamDinhDataGridViewColumn.Name = "uxI22CondBhXuatTheoGiamDinhDataGridViewColumn";
			this.uxI22CondBhXuatTheoGiamDinhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI22CondBhXuatTheoGiamDinhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI22CondBhXuatTheoGiamDinhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI23CondBhXuatKhacDataGridViewColumn
			//
			this.uxI23CondBhXuatKhacDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI23CondBhXuatKhacDataGridViewColumn.DataPropertyName = "I23CondBhXuatKhac";
			this.uxI23CondBhXuatKhacDataGridViewColumn.HeaderText = "I23CondBhXuatKhac";
			this.uxI23CondBhXuatKhacDataGridViewColumn.Name = "uxI23CondBhXuatKhacDataGridViewColumn";
			this.uxI23CondBhXuatKhacDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI23CondBhXuatKhacDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI23CondBhXuatKhacDataGridViewColumn.ReadOnly = false;		
			//
			// uxI24BuproTheoMeterDataGridViewColumn
			//
			this.uxI24BuproTheoMeterDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI24BuproTheoMeterDataGridViewColumn.DataPropertyName = "I24BuproTheoMeter";
			this.uxI24BuproTheoMeterDataGridViewColumn.HeaderText = "I24BuproTheoMeter";
			this.uxI24BuproTheoMeterDataGridViewColumn.Name = "uxI24BuproTheoMeterDataGridViewColumn";
			this.uxI24BuproTheoMeterDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI24BuproTheoMeterDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI24BuproTheoMeterDataGridViewColumn.ReadOnly = false;		
			//
			// uxI25BuproTheoTankDataGridViewColumn
			//
			this.uxI25BuproTheoTankDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI25BuproTheoTankDataGridViewColumn.DataPropertyName = "I25BuproTheoTank";
			this.uxI25BuproTheoTankDataGridViewColumn.HeaderText = "I25BuproTheoTank";
			this.uxI25BuproTheoTankDataGridViewColumn.Name = "uxI25BuproTheoTankDataGridViewColumn";
			this.uxI25BuproTheoTankDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI25BuproTheoTankDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI25BuproTheoTankDataGridViewColumn.ReadOnly = false;		
			//
			// uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn
			//
			this.uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn.DataPropertyName = "I27BuproXuatTheoGiamDinhTamTinh";
			this.uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn.HeaderText = "I27BuproXuatTheoGiamDinhTamTinh";
			this.uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn.Name = "uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn";
			this.uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI28BuproXuatKhacDataGridViewColumn
			//
			this.uxI28BuproXuatKhacDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI28BuproXuatKhacDataGridViewColumn.DataPropertyName = "I28BuproXuatKhac";
			this.uxI28BuproXuatKhacDataGridViewColumn.HeaderText = "I28BuproXuatKhac";
			this.uxI28BuproXuatKhacDataGridViewColumn.Name = "uxI28BuproXuatKhacDataGridViewColumn";
			this.uxI28BuproXuatKhacDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI28BuproXuatKhacDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI28BuproXuatKhacDataGridViewColumn.ReadOnly = false;		
			//
			// uxI29CondNcsXuatTheoMeterDataGridViewColumn
			//
			this.uxI29CondNcsXuatTheoMeterDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI29CondNcsXuatTheoMeterDataGridViewColumn.DataPropertyName = "I29CondNcsXuatTheoMeter";
			this.uxI29CondNcsXuatTheoMeterDataGridViewColumn.HeaderText = "I29CondNcsXuatTheoMeter";
			this.uxI29CondNcsXuatTheoMeterDataGridViewColumn.Name = "uxI29CondNcsXuatTheoMeterDataGridViewColumn";
			this.uxI29CondNcsXuatTheoMeterDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI29CondNcsXuatTheoMeterDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI29CondNcsXuatTheoMeterDataGridViewColumn.ReadOnly = false;		
			//
			// uxI30CondNcsXuatTheoTankDataGridViewColumn
			//
			this.uxI30CondNcsXuatTheoTankDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI30CondNcsXuatTheoTankDataGridViewColumn.DataPropertyName = "I30CondNcsXuatTheoTank";
			this.uxI30CondNcsXuatTheoTankDataGridViewColumn.HeaderText = "I30CondNcsXuatTheoTank";
			this.uxI30CondNcsXuatTheoTankDataGridViewColumn.Name = "uxI30CondNcsXuatTheoTankDataGridViewColumn";
			this.uxI30CondNcsXuatTheoTankDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI30CondNcsXuatTheoTankDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI30CondNcsXuatTheoTankDataGridViewColumn.ReadOnly = false;		
			//
			// uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn
			//
			this.uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn.DataPropertyName = "I31CondNcsXuatTheoGiamDinh";
			this.uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn.HeaderText = "I31CondNcsXuatTheoGiamDinh";
			this.uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn.Name = "uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn";
			this.uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn.ReadOnly = false;		
			//
			// uxI32CondNcsXuatKhacDataGridViewColumn
			//
			this.uxI32CondNcsXuatKhacDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI32CondNcsXuatKhacDataGridViewColumn.DataPropertyName = "I32CondNcsXuatKhac";
			this.uxI32CondNcsXuatKhacDataGridViewColumn.HeaderText = "I32CondNcsXuatKhac";
			this.uxI32CondNcsXuatKhacDataGridViewColumn.Name = "uxI32CondNcsXuatKhacDataGridViewColumn";
			this.uxI32CondNcsXuatKhacDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI32CondNcsXuatKhacDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI32CondNcsXuatKhacDataGridViewColumn.ReadOnly = false;		
			//
			// uxI33CondNcsLiftNoDataGridViewColumn
			//
			this.uxI33CondNcsLiftNoDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI33CondNcsLiftNoDataGridViewColumn.DataPropertyName = "I33CondNcsLiftNo";
			this.uxI33CondNcsLiftNoDataGridViewColumn.HeaderText = "I33CondNcsLiftNo";
			this.uxI33CondNcsLiftNoDataGridViewColumn.Name = "uxI33CondNcsLiftNoDataGridViewColumn";
			this.uxI33CondNcsLiftNoDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI33CondNcsLiftNoDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI33CondNcsLiftNoDataGridViewColumn.ReadOnly = false;		
			//
			// uxI34LpgXaDotDataGridViewColumn
			//
			this.uxI34LpgXaDotDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI34LpgXaDotDataGridViewColumn.DataPropertyName = "I34LpgXaDot";
			this.uxI34LpgXaDotDataGridViewColumn.HeaderText = "I34LpgXaDot";
			this.uxI34LpgXaDotDataGridViewColumn.Name = "uxI34LpgXaDotDataGridViewColumn";
			this.uxI34LpgXaDotDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI34LpgXaDotDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI34LpgXaDotDataGridViewColumn.ReadOnly = false;		
			//
			// uxI35CondXaDotDataGridViewColumn
			//
			this.uxI35CondXaDotDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI35CondXaDotDataGridViewColumn.DataPropertyName = "I35CondXaDot";
			this.uxI35CondXaDotDataGridViewColumn.HeaderText = "I35CondXaDot";
			this.uxI35CondXaDotDataGridViewColumn.Name = "uxI35CondXaDotDataGridViewColumn";
			this.uxI35CondXaDotDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI35CondXaDotDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI35CondXaDotDataGridViewColumn.ReadOnly = false;		
			//
			// uxI36CondBhKhoiLuongTonDataGridViewColumn
			//
			this.uxI36CondBhKhoiLuongTonDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI36CondBhKhoiLuongTonDataGridViewColumn.DataPropertyName = "I36CondBhKhoiLuongTon";
			this.uxI36CondBhKhoiLuongTonDataGridViewColumn.HeaderText = "I36CondBhKhoiLuongTon";
			this.uxI36CondBhKhoiLuongTonDataGridViewColumn.Name = "uxI36CondBhKhoiLuongTonDataGridViewColumn";
			this.uxI36CondBhKhoiLuongTonDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI36CondBhKhoiLuongTonDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI36CondBhKhoiLuongTonDataGridViewColumn.ReadOnly = false;		
			//
			// uxI37CondBhTonMucaDataGridViewColumn
			//
			this.uxI37CondBhTonMucaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI37CondBhTonMucaDataGridViewColumn.DataPropertyName = "I37CondBhTonMuca";
			this.uxI37CondBhTonMucaDataGridViewColumn.HeaderText = "I37CondBhTonMuca";
			this.uxI37CondBhTonMucaDataGridViewColumn.Name = "uxI37CondBhTonMucaDataGridViewColumn";
			this.uxI37CondBhTonMucaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI37CondBhTonMucaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI37CondBhTonMucaDataGridViewColumn.ReadOnly = false;		
			//
			// uxI38CondBhTonMucbDataGridViewColumn
			//
			this.uxI38CondBhTonMucbDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI38CondBhTonMucbDataGridViewColumn.DataPropertyName = "I38CondBhTonMucb";
			this.uxI38CondBhTonMucbDataGridViewColumn.HeaderText = "I38CondBhTonMucb";
			this.uxI38CondBhTonMucbDataGridViewColumn.Name = "uxI38CondBhTonMucbDataGridViewColumn";
			this.uxI38CondBhTonMucbDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI38CondBhTonMucbDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI38CondBhTonMucbDataGridViewColumn.ReadOnly = false;		
			//
			// uxI39BuproTonDataGridViewColumn
			//
			this.uxI39BuproTonDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI39BuproTonDataGridViewColumn.DataPropertyName = "I39BuproTon";
			this.uxI39BuproTonDataGridViewColumn.HeaderText = "I39BuproTon";
			this.uxI39BuproTonDataGridViewColumn.Name = "uxI39BuproTonDataGridViewColumn";
			this.uxI39BuproTonDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI39BuproTonDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI39BuproTonDataGridViewColumn.ReadOnly = false;		
			//
			// uxI40CondNcsKhoiLuongTonDataGridViewColumn
			//
			this.uxI40CondNcsKhoiLuongTonDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI40CondNcsKhoiLuongTonDataGridViewColumn.DataPropertyName = "I40CondNcsKhoiLuongTon";
			this.uxI40CondNcsKhoiLuongTonDataGridViewColumn.HeaderText = "I40CondNcsKhoiLuongTon";
			this.uxI40CondNcsKhoiLuongTonDataGridViewColumn.Name = "uxI40CondNcsKhoiLuongTonDataGridViewColumn";
			this.uxI40CondNcsKhoiLuongTonDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI40CondNcsKhoiLuongTonDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI40CondNcsKhoiLuongTonDataGridViewColumn.ReadOnly = false;		
			//
			// uxI41CondNcsTonMucaDataGridViewColumn
			//
			this.uxI41CondNcsTonMucaDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI41CondNcsTonMucaDataGridViewColumn.DataPropertyName = "I41CondNcsTonMuca";
			this.uxI41CondNcsTonMucaDataGridViewColumn.HeaderText = "I41CondNcsTonMuca";
			this.uxI41CondNcsTonMucaDataGridViewColumn.Name = "uxI41CondNcsTonMucaDataGridViewColumn";
			this.uxI41CondNcsTonMucaDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI41CondNcsTonMucaDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI41CondNcsTonMucaDataGridViewColumn.ReadOnly = false;		
			//
			// uxI42CondNcsTonMucbDataGridViewColumn
			//
			this.uxI42CondNcsTonMucbDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI42CondNcsTonMucbDataGridViewColumn.DataPropertyName = "I42CondNcsTonMucb";
			this.uxI42CondNcsTonMucbDataGridViewColumn.HeaderText = "I42CondNcsTonMucb";
			this.uxI42CondNcsTonMucbDataGridViewColumn.Name = "uxI42CondNcsTonMucbDataGridViewColumn";
			this.uxI42CondNcsTonMucbDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI42CondNcsTonMucbDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI42CondNcsTonMucbDataGridViewColumn.ReadOnly = false;		
			//
			// uxI65GhiChuNcsDataGridViewColumn
			//
			this.uxI65GhiChuNcsDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI65GhiChuNcsDataGridViewColumn.DataPropertyName = "I65GhiChuNcs";
			this.uxI65GhiChuNcsDataGridViewColumn.HeaderText = "I65GhiChuNcs";
			this.uxI65GhiChuNcsDataGridViewColumn.Name = "uxI65GhiChuNcsDataGridViewColumn";
			this.uxI65GhiChuNcsDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI65GhiChuNcsDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI65GhiChuNcsDataGridViewColumn.ReadOnly = false;		
			//
			// uxI66GhiChuNhapDataGridViewColumn
			//
			this.uxI66GhiChuNhapDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI66GhiChuNhapDataGridViewColumn.DataPropertyName = "I66GhiChuNhap";
			this.uxI66GhiChuNhapDataGridViewColumn.HeaderText = "I66GhiChuNhap";
			this.uxI66GhiChuNhapDataGridViewColumn.Name = "uxI66GhiChuNhapDataGridViewColumn";
			this.uxI66GhiChuNhapDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI66GhiChuNhapDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI66GhiChuNhapDataGridViewColumn.ReadOnly = false;		
			//
			// uxI67GhiChuXuatDataGridViewColumn
			//
			this.uxI67GhiChuXuatDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI67GhiChuXuatDataGridViewColumn.DataPropertyName = "I67GhiChuXuat";
			this.uxI67GhiChuXuatDataGridViewColumn.HeaderText = "I67GhiChuXuat";
			this.uxI67GhiChuXuatDataGridViewColumn.Name = "uxI67GhiChuXuatDataGridViewColumn";
			this.uxI67GhiChuXuatDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI67GhiChuXuatDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI67GhiChuXuatDataGridViewColumn.ReadOnly = false;		
			//
			// uxI68GhiChuTonDataGridViewColumn
			//
			this.uxI68GhiChuTonDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI68GhiChuTonDataGridViewColumn.DataPropertyName = "I68GhiChuTon";
			this.uxI68GhiChuTonDataGridViewColumn.HeaderText = "I68GhiChuTon";
			this.uxI68GhiChuTonDataGridViewColumn.Name = "uxI68GhiChuTonDataGridViewColumn";
			this.uxI68GhiChuTonDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI68GhiChuTonDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI68GhiChuTonDataGridViewColumn.ReadOnly = false;		
			//
			// uxI69GhiChuKhacDataGridViewColumn
			//
			this.uxI69GhiChuKhacDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxI69GhiChuKhacDataGridViewColumn.DataPropertyName = "I69GhiChuKhac";
			this.uxI69GhiChuKhacDataGridViewColumn.HeaderText = "I69GhiChuKhac";
			this.uxI69GhiChuKhacDataGridViewColumn.Name = "uxI69GhiChuKhacDataGridViewColumn";
			this.uxI69GhiChuKhacDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxI69GhiChuKhacDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxI69GhiChuKhacDataGridViewColumn.ReadOnly = false;		
			//
			// uxStatusDataGridViewColumn
			//
			this.uxStatusDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxStatusDataGridViewColumn.DataPropertyName = "Status";
			this.uxStatusDataGridViewColumn.HeaderText = "Status";
			this.uxStatusDataGridViewColumn.Name = "uxStatusDataGridViewColumn";
			this.uxStatusDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxStatusDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxStatusDataGridViewColumn.ReadOnly = false;		
			//
			// uxCreatedUserDataGridViewColumn
			//
			this.uxCreatedUserDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxCreatedUserDataGridViewColumn.DataPropertyName = "CreatedUser";
			this.uxCreatedUserDataGridViewColumn.HeaderText = "CreatedUser";
			this.uxCreatedUserDataGridViewColumn.Name = "uxCreatedUserDataGridViewColumn";
			this.uxCreatedUserDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxCreatedUserDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxCreatedUserDataGridViewColumn.ReadOnly = false;		
			//
			// uxHidDataGridViewColumn
			//
			this.uxHidDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxHidDataGridViewColumn.DataPropertyName = "Hid";
			this.uxHidDataGridViewColumn.HeaderText = "Hid";
			this.uxHidDataGridViewColumn.Name = "uxHidDataGridViewColumn";
			this.uxHidDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxHidDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxHidDataGridViewColumn.ReadOnly = false;		
			//
			// uxCreatedDateDataGridViewColumn
			//
			this.uxCreatedDateDataGridViewColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
			this.uxCreatedDateDataGridViewColumn.DataPropertyName = "CreatedDate";
			this.uxCreatedDateDataGridViewColumn.HeaderText = "CreatedDate";
			this.uxCreatedDateDataGridViewColumn.Name = "uxCreatedDateDataGridViewColumn";
			this.uxCreatedDateDataGridViewColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
			this.uxCreatedDateDataGridViewColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
			this.uxCreatedDateDataGridViewColumn.ReadOnly = false;		
			//
			// uxStatusDataGridViewColumn
			//				
			this.uxStatusDataGridViewColumn.DisplayMember = "Name";	
			this.uxStatusDataGridViewColumn.ValueMember = "Id";	
			this.uxStatusDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxStatusDataGridViewColumn.DataSource = uxStatusBindingSource;				
				
			//
			// uxCreatedUserDataGridViewColumn
			//				
			this.uxCreatedUserDataGridViewColumn.DisplayMember = "Username";	
			this.uxCreatedUserDataGridViewColumn.ValueMember = "Id";	
			this.uxCreatedUserDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxCreatedUserDataGridViewColumn.DataSource = uxCreatedUserBindingSource;				
				
			//
			// uxHidDataGridViewColumn
			//				
			this.uxHidDataGridViewColumn.DisplayMember = "I1InputDate";	
			this.uxHidDataGridViewColumn.ValueMember = "Id";	
			this.uxHidDataGridViewColumn.DisplayStyleForCurrentCellOnly = true;
			//uxHidDataGridViewColumn.DataSource = uxHidBindingSource;				
				
			
			// this
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.Controls.Add(this.uxTvtDataGridView);
			this.Name = "TvtDataGridView";
			this.Size = new System.Drawing.Size(470, 300);
			//((System.ComponentModel.ISupportInitialize)(this.uxStatusBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxCreatedUserBindingSource)).EndInit();
			//((System.ComponentModel.ISupportInitialize)(this.uxHidBindingSource)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxTvtErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxTvtDataGridView)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxTvtBindingSource)).EndInit();
			this.ResumeLayout(false);
		}
		#endregion
				
		#region events
		
		/// <summary>
		/// Raised the CurrentEntityChanged event.
		/// </summary>
		protected void OnCurrentEntityChanged()
		{
			if (CurrentEntityChanged != null)
			{
				TvtDataGridViewEventArgs args = new TvtDataGridViewEventArgs();
				args.Tvt = _currentTvt;
				CurrentEntityChanged(this, args); 
			}
		}
		
		#endregion
		
		/// <summary>
		/// Strongly typed event 
		/// </summary>
		public class TvtDataGridViewEventArgs : System.EventArgs
		{
			private Entities.Tvt	_Tvt;
	
			/// <summary>
			/// the  Entities.Tvt instance.
			/// </summary>
			public Entities.Tvt Tvt
			{
				get { return _Tvt; }
				set { _Tvt = value; }
			}	
		}
		
		/// <summary>
		/// Handles the DataError event of the uxTvtDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewDataErrorEventArgs"/> instance containing the event data.</param>
		protected void OnTvtDataGridViewDataError(object sender, System.Windows.Forms.DataGridViewDataErrorEventArgs e)
		{
			System.Diagnostics.Debug.WriteLine(string.Format( "{0}, {1}", e.ColumnIndex, e.RowIndex));
		}
		
		/// <summary>
		/// Handles the CellValueNeeded event of the uxTvtDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnTvtDataGridViewCellValueNeeded(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxTvtDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIdDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].Id;
						break;
					case "uxI1InputDateDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I1InputDate;
						break;
					case "uxI7CondBhLuongNhapDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I7CondBhLuongNhap;
						break;
					case "uxI8CondBhTenMeNhapDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I8CondBhTenMeNhap;
						break;
					case "uxI9CondBhKhacDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I9CondBhKhac;
						break;
					case "uxI10CondBhd1013DataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I10CondBhd1013;
						break;
					case "uxI11BuproFt1011NhapDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I11BuproFt1011Nhap;
						break;
					case "uxI12BuproFt1012NhapDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I12BuproFt1012Nhap;
						break;
					case "uxI13BuproXeBonNhapDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I13BuproXeBonNhap;
						break;
					case "uxI14BuproKhacDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I14BuproKhac;
						break;
					case "uxI15DlpgDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I15Dlpg;
						break;
					case "uxI16CondNcsz7900DataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I16CondNcsz7900;
						break;
					case "uxI17CondNcsKhacDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I17CondNcsKhac;
						break;
					case "uxI18CondNcsBatchNoDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I18CondNcsBatchNo;
						break;
					case "uxI19d7900DataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I19d7900;
						break;
					case "uxI20CondBhXuatTheoMeterDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I20CondBhXuatTheoMeter;
						break;
					case "uxI21CondBhXuatTheoTankDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I21CondBhXuatTheoTank;
						break;
					case "uxI22CondBhXuatTheoGiamDinhDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I22CondBhXuatTheoGiamDinh;
						break;
					case "uxI23CondBhXuatKhacDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I23CondBhXuatKhac;
						break;
					case "uxI24BuproTheoMeterDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I24BuproTheoMeter;
						break;
					case "uxI25BuproTheoTankDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I25BuproTheoTank;
						break;
					case "uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I27BuproXuatTheoGiamDinhTamTinh;
						break;
					case "uxI28BuproXuatKhacDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I28BuproXuatKhac;
						break;
					case "uxI29CondNcsXuatTheoMeterDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I29CondNcsXuatTheoMeter;
						break;
					case "uxI30CondNcsXuatTheoTankDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I30CondNcsXuatTheoTank;
						break;
					case "uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I31CondNcsXuatTheoGiamDinh;
						break;
					case "uxI32CondNcsXuatKhacDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I32CondNcsXuatKhac;
						break;
					case "uxI33CondNcsLiftNoDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I33CondNcsLiftNo;
						break;
					case "uxI34LpgXaDotDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I34LpgXaDot;
						break;
					case "uxI35CondXaDotDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I35CondXaDot;
						break;
					case "uxI36CondBhKhoiLuongTonDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I36CondBhKhoiLuongTon;
						break;
					case "uxI37CondBhTonMucaDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I37CondBhTonMuca;
						break;
					case "uxI38CondBhTonMucbDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I38CondBhTonMucb;
						break;
					case "uxI39BuproTonDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I39BuproTon;
						break;
					case "uxI40CondNcsKhoiLuongTonDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I40CondNcsKhoiLuongTon;
						break;
					case "uxI41CondNcsTonMucaDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I41CondNcsTonMuca;
						break;
					case "uxI42CondNcsTonMucbDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I42CondNcsTonMucb;
						break;
					case "uxI65GhiChuNcsDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I65GhiChuNcs;
						break;
					case "uxI66GhiChuNhapDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I66GhiChuNhap;
						break;
					case "uxI67GhiChuXuatDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I67GhiChuXuat;
						break;
					case "uxI68GhiChuTonDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I68GhiChuTon;
						break;
					case "uxI69GhiChuKhacDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].I69GhiChuKhac;
						break;
					case "uxStatusDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].Status;
						break;
					case "uxCreatedUserDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].CreatedUser;
						break;
					case "uxHidDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].Hid;
						break;
					case "uxCreatedDateDataGridViewColumn":
						e.Value = TvtList[e.RowIndex].CreatedDate;
						break;
				default:
				break;
			}
		}
		
		/// <summary>
		/// Handles the CellValuePushed event of the uxTvtDataGridView control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.DataGridViewCellValueEventArgs"/> instance containing the event data.</param>
		protected void OnTvtDataGridViewCellValuePushed(object sender, System.Windows.Forms.DataGridViewCellValueEventArgs e)
		{
			switch(uxTvtDataGridView.Columns[e.ColumnIndex].Name)
			{
					case "uxIdDataGridViewColumn":
						TvtList[e.RowIndex].Id = (System.Int64)e.Value;
						break;
					case "uxI1InputDateDataGridViewColumn":
						TvtList[e.RowIndex].I1InputDate = (System.DateTime)e.Value;
						break;
					case "uxI7CondBhLuongNhapDataGridViewColumn":
						TvtList[e.RowIndex].I7CondBhLuongNhap = (System.Double)e.Value;
						break;
					case "uxI8CondBhTenMeNhapDataGridViewColumn":
						TvtList[e.RowIndex].I8CondBhTenMeNhap = (System.String)e.Value;
						break;
					case "uxI9CondBhKhacDataGridViewColumn":
						TvtList[e.RowIndex].I9CondBhKhac = (System.Double)e.Value;
						break;
					case "uxI10CondBhd1013DataGridViewColumn":
						TvtList[e.RowIndex].I10CondBhd1013 = (System.Double)e.Value;
						break;
					case "uxI11BuproFt1011NhapDataGridViewColumn":
						TvtList[e.RowIndex].I11BuproFt1011Nhap = (System.Double)e.Value;
						break;
					case "uxI12BuproFt1012NhapDataGridViewColumn":
						TvtList[e.RowIndex].I12BuproFt1012Nhap = (System.Double)e.Value;
						break;
					case "uxI13BuproXeBonNhapDataGridViewColumn":
						TvtList[e.RowIndex].I13BuproXeBonNhap = (System.Double)e.Value;
						break;
					case "uxI14BuproKhacDataGridViewColumn":
						TvtList[e.RowIndex].I14BuproKhac = (System.Double)e.Value;
						break;
					case "uxI15DlpgDataGridViewColumn":
						TvtList[e.RowIndex].I15Dlpg = (System.Double)e.Value;
						break;
					case "uxI16CondNcsz7900DataGridViewColumn":
						TvtList[e.RowIndex].I16CondNcsz7900 = (System.Double)e.Value;
						break;
					case "uxI17CondNcsKhacDataGridViewColumn":
						TvtList[e.RowIndex].I17CondNcsKhac = (System.Double)e.Value;
						break;
					case "uxI18CondNcsBatchNoDataGridViewColumn":
						TvtList[e.RowIndex].I18CondNcsBatchNo = (System.String)e.Value;
						break;
					case "uxI19d7900DataGridViewColumn":
						TvtList[e.RowIndex].I19d7900 = (System.Double)e.Value;
						break;
					case "uxI20CondBhXuatTheoMeterDataGridViewColumn":
						TvtList[e.RowIndex].I20CondBhXuatTheoMeter = (System.Double)e.Value;
						break;
					case "uxI21CondBhXuatTheoTankDataGridViewColumn":
						TvtList[e.RowIndex].I21CondBhXuatTheoTank = (System.Double)e.Value;
						break;
					case "uxI22CondBhXuatTheoGiamDinhDataGridViewColumn":
						TvtList[e.RowIndex].I22CondBhXuatTheoGiamDinh = (System.Double)e.Value;
						break;
					case "uxI23CondBhXuatKhacDataGridViewColumn":
						TvtList[e.RowIndex].I23CondBhXuatKhac = (System.Double)e.Value;
						break;
					case "uxI24BuproTheoMeterDataGridViewColumn":
						TvtList[e.RowIndex].I24BuproTheoMeter = (System.Double)e.Value;
						break;
					case "uxI25BuproTheoTankDataGridViewColumn":
						TvtList[e.RowIndex].I25BuproTheoTank = (System.Double)e.Value;
						break;
					case "uxI27BuproXuatTheoGiamDinhTamTinhDataGridViewColumn":
						TvtList[e.RowIndex].I27BuproXuatTheoGiamDinhTamTinh = (System.Double)e.Value;
						break;
					case "uxI28BuproXuatKhacDataGridViewColumn":
						TvtList[e.RowIndex].I28BuproXuatKhac = (System.Double)e.Value;
						break;
					case "uxI29CondNcsXuatTheoMeterDataGridViewColumn":
						TvtList[e.RowIndex].I29CondNcsXuatTheoMeter = (System.Double)e.Value;
						break;
					case "uxI30CondNcsXuatTheoTankDataGridViewColumn":
						TvtList[e.RowIndex].I30CondNcsXuatTheoTank = (System.Double)e.Value;
						break;
					case "uxI31CondNcsXuatTheoGiamDinhDataGridViewColumn":
						TvtList[e.RowIndex].I31CondNcsXuatTheoGiamDinh = (System.Double)e.Value;
						break;
					case "uxI32CondNcsXuatKhacDataGridViewColumn":
						TvtList[e.RowIndex].I32CondNcsXuatKhac = (System.Double)e.Value;
						break;
					case "uxI33CondNcsLiftNoDataGridViewColumn":
						TvtList[e.RowIndex].I33CondNcsLiftNo = (System.String)e.Value;
						break;
					case "uxI34LpgXaDotDataGridViewColumn":
						TvtList[e.RowIndex].I34LpgXaDot = (System.Double)e.Value;
						break;
					case "uxI35CondXaDotDataGridViewColumn":
						TvtList[e.RowIndex].I35CondXaDot = (System.Double)e.Value;
						break;
					case "uxI36CondBhKhoiLuongTonDataGridViewColumn":
						TvtList[e.RowIndex].I36CondBhKhoiLuongTon = (System.Double)e.Value;
						break;
					case "uxI37CondBhTonMucaDataGridViewColumn":
						TvtList[e.RowIndex].I37CondBhTonMuca = (System.Double)e.Value;
						break;
					case "uxI38CondBhTonMucbDataGridViewColumn":
						TvtList[e.RowIndex].I38CondBhTonMucb = (System.Double)e.Value;
						break;
					case "uxI39BuproTonDataGridViewColumn":
						TvtList[e.RowIndex].I39BuproTon = (System.Double)e.Value;
						break;
					case "uxI40CondNcsKhoiLuongTonDataGridViewColumn":
						TvtList[e.RowIndex].I40CondNcsKhoiLuongTon = (System.Double)e.Value;
						break;
					case "uxI41CondNcsTonMucaDataGridViewColumn":
						TvtList[e.RowIndex].I41CondNcsTonMuca = (System.Double)e.Value;
						break;
					case "uxI42CondNcsTonMucbDataGridViewColumn":
						TvtList[e.RowIndex].I42CondNcsTonMucb = (System.Double)e.Value;
						break;
					case "uxI65GhiChuNcsDataGridViewColumn":
						TvtList[e.RowIndex].I65GhiChuNcs = (System.String)e.Value;
						break;
					case "uxI66GhiChuNhapDataGridViewColumn":
						TvtList[e.RowIndex].I66GhiChuNhap = (System.String)e.Value;
						break;
					case "uxI67GhiChuXuatDataGridViewColumn":
						TvtList[e.RowIndex].I67GhiChuXuat = (System.String)e.Value;
						break;
					case "uxI68GhiChuTonDataGridViewColumn":
						TvtList[e.RowIndex].I68GhiChuTon = (System.String)e.Value;
						break;
					case "uxI69GhiChuKhacDataGridViewColumn":
						TvtList[e.RowIndex].I69GhiChuKhac = (System.String)e.Value;
						break;
					case "uxStatusDataGridViewColumn":
						TvtList[e.RowIndex].Status = (System.Int32)e.Value;
						break;
					case "uxCreatedUserDataGridViewColumn":
						TvtList[e.RowIndex].CreatedUser = (System.Int32)e.Value;
						break;
					case "uxHidDataGridViewColumn":
						TvtList[e.RowIndex].Hid = (System.Int64?)e.Value;
						break;
					case "uxCreatedDateDataGridViewColumn":
						TvtList[e.RowIndex].CreatedDate = (System.DateTime)e.Value;
						break;
				default:
				break;
			}
		}
	}
}
